package com.itheima.area.dao;

import com.itheima.area.pojo.CustFarmlandCrop;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @PackageName com.itheima.area.dao
 * @ProjectName Ceres-Work
 * @Created by Chanly on 2020/10/14 19:57
 **/
public interface CropDao extends Mapper<CustFarmlandCrop> {
    @Select("select * from t_cust_farmland_crop where crop_land_id=#{id}")
    List<CustFarmlandCrop> findByFarmlandId(@Param("id") Long id);
}
